<div class="smsUsers index">
	<h2><?php __('Sms Users');?></h2>
	<table cellpadding="0" cellspacing="0">
	<tr>
			<th><?php echo $this->Paginator->sort('id');?></th>
			<th><?php echo $this->Paginator->sort('student_id');?></th>
			<th><?php echo $this->Paginator->sort('name');?></th>
			<th><?php echo $this->Paginator->sort('password');?></th>
			<th><?php echo $this->Paginator->sort('password_count');?></th>
			<th><?php echo $this->Paginator->sort('birthday');?></th>
			<th><?php echo $this->Paginator->sort('registered_day');?></th>
			<th><?php echo $this->Paginator->sort('mobile');?></th>
			<th><?php echo $this->Paginator->sort('email');?></th>
			<th><?php echo $this->Paginator->sort('address');?></th>
			<th><?php echo $this->Paginator->sort('company');?></th>
			<th><?php echo $this->Paginator->sort('picture');?></th>
			<th><?php echo $this->Paginator->sort('is_active');?></th>
			<th><?php echo $this->Paginator->sort('sms_classes_id');?></th>
			<th><?php echo $this->Paginator->sort('sms_courses_id');?></th>
			<th><?php echo $this->Paginator->sort('sms_users_roles_id');?></th>
			<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
	$i = 0;
	foreach ($smsUsers as $smsUser):
		$class = null;
		if ($i++ % 2 == 0) {
			$class = ' class="altrow"';
		}
	?>
	<tr<?php echo $class;?>>
		<td><?php echo $smsUser['SmsUser']['id']; ?>&nbsp;</td>
		<td><?php echo $smsUser['SmsUser']['student_id']; ?>&nbsp;</td>
		<td><?php echo $smsUser['SmsUser']['name']; ?>&nbsp;</td>
		<td><?php echo $smsUser['SmsUser']['password']; ?>&nbsp;</td>
		<td><?php echo $smsUser['SmsUser']['password_count']; ?>&nbsp;</td>
		<td><?php echo $smsUser['SmsUser']['birthday']; ?>&nbsp;</td>
		<td><?php echo $smsUser['SmsUser']['registered_day']; ?>&nbsp;</td>
		<td><?php echo $smsUser['SmsUser']['mobile']; ?>&nbsp;</td>
		<td><?php echo $smsUser['SmsUser']['email']; ?>&nbsp;</td>
		<td><?php echo $smsUser['SmsUser']['address']; ?>&nbsp;</td>
		<td><?php echo $smsUser['SmsUser']['company']; ?>&nbsp;</td>
		<td><?php echo $smsUser['SmsUser']['picture']; ?>&nbsp;</td>
		<td><?php echo $smsUser['SmsUser']['is_active']; ?>&nbsp;</td>
		<td>
			<?php echo $this->Html->link($smsUser['SmsClasses']['name'], array('controller' => 'sms_classes', 'action' => 'view', $smsUser['SmsClasses']['id'])); ?>
		</td>
		<td>
			<?php echo $this->Html->link($smsUser['SmsCourses']['name'], array('controller' => 'sms_courses', 'action' => 'view', $smsUser['SmsCourses']['id'])); ?>
		</td>
		<td>
			<?php echo $this->Html->link($smsUser['SmsUsersRoles']['id'], array('controller' => 'sms_users_roles', 'action' => 'view', $smsUser['SmsUsersRoles']['id'])); ?>
		</td>
		<td class="actions">
			<?php echo $this->Html->link(__('View', true), array('action' => 'view', $smsUser['SmsUser']['id'])); ?>
			<?php echo $this->Html->link(__('Edit', true), array('action' => 'edit', $smsUser['SmsUser']['id'])); ?>
			<?php echo $this->Html->link(__('Delete', true), array('action' => 'delete', $smsUser['SmsUser']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $smsUser['SmsUser']['id'])); ?>
		</td>
	</tr>
<?php endforeach; ?>
	</table>
	<p>
	<?php
	echo $this->Paginator->counter(array(
	'format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true)
	));
	?>	</p>

	<div class="paging">
		<?php echo $this->Paginator->prev('<< ' . __('previous', true), array(), null, array('class'=>'disabled'));?>
	 | 	<?php echo $this->Paginator->numbers();?>
 |
		<?php echo $this->Paginator->next(__('next', true) . ' >>', array(), null, array('class' => 'disabled'));?>
	</div>
</div>
<div class="actions">
	<h3><?php __('Actions'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('New Sms User', true), array('action' => 'add')); ?></li>
		<li><?php echo $this->Html->link(__('List Sms Classes', true), array('controller' => 'sms_classes', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Sms Classes', true), array('controller' => 'sms_classes', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Sms Courses', true), array('controller' => 'sms_courses', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Sms Courses', true), array('controller' => 'sms_courses', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Sms Users Roles', true), array('controller' => 'sms_users_roles', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Sms Users Roles', true), array('controller' => 'sms_users_roles', 'action' => 'add')); ?> </li>
	</ul>
</div>